import request from '@/utils/request'

export async function getRegisterData (params) {
  var res = await request.post('http://121.89.205.189/api/user/docheckphone', {
    tel: params
  })
  return res.data
}

export async function getCode (params) {
  var res = await request.post('http://121.89.205.189/api/user/dosendmsgcode', {
    tel: params
  })
  return res.data.data
}

export async function docheckcode (params) {
  var res = await request.post('http://121.89.205.189/api/user/docheckcode', params)
  return res.data
}

export async function dofinishregister (params) {
  var res = await request.post('http://121.89.205.189/api/user/dofinishregister', params)
  return res.data
}

export async function userLogin (params) {
  var res = await request.post('http://121.89.205.189/api/user/login', params)
  return res.data
}
